namespace FanG
{
    using System;
    using System.ComponentModel;

    [TypeConverter(typeof(ExpandableObjectConverter))]
    public class CrystalAttributes
    {
        private int _Contraction;
        private bool _CoverFull;
        private FanG.Chartlet.Direction _Direction;
        private bool _Enable;

        public CrystalAttributes()
        {
            this._Contraction = 2;
        }

        public CrystalAttributes(bool Enable, bool CoverFull, int Contraction)
        {
            this._Contraction = 2;
            this.Enable = Enable;
            this.CoverFull = CoverFull;
            this.Contraction = Contraction;
        }

        [Description("Pixes of crystal effect contraction\n高亮区域收缩像素"), Category("Chartlet")]
        public int Contraction
        {
            get
            {
                return this._Contraction;
            }
            set
            {
                this._Contraction = value;
            }
        }

        [Description("Full Crystal or half crystal\n全高亮水晶效果，还是半高亮水晶效果"), Category("Chartlet")]
        public bool CoverFull
        {
            get
            {
                return this._CoverFull;
            }
            set
            {
                this._CoverFull = value;
            }
        }

        [Description("Crystal effect direction\n水晶效果的投射方向"), Category("Chartlet")]
        public FanG.Chartlet.Direction Direction
        {
            get
            {
                return this._Direction;
            }
            set
            {
                this._Direction = value;
            }
        }

        [Description("Enable Crystal effect\n水晶效果"), Category("Chartlet")]
        public bool Enable
        {
            get
            {
                return this._Enable;
            }
            set
            {
                this._Enable = value;
            }
        }
    }
}

